﻿namespace 职责链模式
{
    public class Hr:Boss
    {
        public Hr(string name) : base(name)
        {
        }

        public override bool PassRequest(Request request)
        {
            var day = request.Day;
            var reason = request.Reason;
            if (day > 0.5 && day <= 2)
                return true;
            return Successor.PassRequest(request);

        }
    }
}
